package org.JWCB.judge.controller;


import org.JWCB.api.domain.judge.dto.JudgeSubmitDto;
import org.JWCB.api.domain.judge.vo.UserQuestionResVo;
import org.JWCB.common.core.controller.BaseController;
import org.JWCB.common.core.domain.vo.R;
import org.JWCB.judge.service.JudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/judge")
public class JudgeController extends BaseController {

    @Autowired
    private JudgeService judgeService;


    @RequestMapping("/doJudgeJavaCode")
    public R<UserQuestionResVo> doJudgeJavaCode(@RequestBody JudgeSubmitDto judgeSubmitDto) {
        return R.ok(judgeService.doJudgeJavaCode(judgeSubmitDto));
    }
}
